{config_load file="lang/$language/lang_$language.conf" section="checkout"}
<h1>{#heading_checkout#}</h1>
{if $error}
	<div class="headerError">{$error}</div>
{/if}
{if $CUSTOMERS_IP!=''}
	<span class="fwb">{#text_ip#}</span> <span class="inputRequirement"><span class="fwb">{$CUSTOMERS_IP}</span></span>
{/if}
<div class="checkout_body">
	
	{if $AGB_stat == 1}
		<div class="checkout_agb">
			<div class="checkout_title" onclick="slideInOrOut('agb')">
				<span class="fwb">{#title_agb#}</span>
				<div class="right" id="btn_agb">{$SHOW_STAT_AGB_SYMBOL}</div>
			</div>
			<div class="checkout_content{$SHOW_STAT_AGB}" id="chkt_agb">
		        <div>{$AGB}</div>
		    </div>
			<div class="bs">{$AGB_checkbox} {#text_accept_agb#}</div>
		</div>
		<div class="checkout_spacer">&nbsp;</div>
	{/if}
	{if $REVOCATION_stat == 1 and $REVOCATION}
		<div class="checkout_revocation">
			<div class="checkout_title" onclick="slideInOrOut('revocation')">
				<span class="fwb">{#title_revocation#}</span> 
				<div class="right" id="btn_revocation">{$SHOW_STAT_REVOCATION_SYMBOL}</div>
			</div>
			<div class="checkout_content{$SHOW_STAT_REVOCATION}" id="chkt_revocation">
		        <div>{$REVOCATION}</div>
		    </div>
			<div class="bs">{$REVOCATION_checkbox} {#text_accept_revocation#}</div>
		</div>
		<div class="checkout_spacer">&nbsp;</div>
	{/if}
	{if $DSG_stat == 1}
		<div class="checkout_dsg">
			<div class="checkout_title" onclick="slideInOrOut('dsg')">
				<span class="fwb">{#title_dsg#}</span> <div class="right" id="btn_dsg">{$SHOW_STAT_DSG_SYMBOL}</div>
			</div>
			<div class="checkout_content{$SHOW_STAT_DSG}" id="chkt_dsg">
		        <div>{$DSG}</div>
		    </div>
			<div class="bs">{$DSG_checkbox} {#text_accept_dsg#}</div>
		</div>
		<div class="checkout_spacer">&nbsp;</div>
	{/if}	

	<div class="bbd mb10">&nbsp;</div>

	<div class="checkout_row clearfix">
		<div class="checkout_shipping_modules">
	    	<div class="checkout_title" onclick="slideInOrOut('shipping_modules')">
	    		<span class="fwb">{#title_shipping_modules#}</span> 
	    		<img id="loader_shipping_modules" src="{$tpl_path}img/ajaxload.gif" class="ajaxloader" width="16" height="16" />
	    		<div class="right" id="btn_shipping_modules">-</div>
	    	</div>
	        <div class="checkout_content{$SHOW_STAT_SHIPPING_MODULES}" id="chkt_shipping_modules">
	        	<div id="not_virtual_modules{if $VIRTUAL == 1 || $FREE_SHIPPING == 1} dn{/if}">
	        	{$FORM_ACTION_SHIPPING_MODULES}
		            <div id="shippings">
		            	{$SHIPPING_BLOCK}
		            </div>
		            {if $NO_SHIPPINGS == 1}
			            <div>
			            	{#text_no_shippings#}
			            </div>
		            {/if}
		            <div class="inputRequirement left_space dn" id="shipping_module_error">&nbsp;</div>
	            {$FORM_END}
	            </div>
	            <div id="virtual_modules" class="virtual{if $VIRTUAL != 1} dn{/if}">{$TEXT_VIRTUAL}</div>
	            <div id="free_shipping_modules" class="virtual{if $FREE_SHIPPING != 1} dn{/if}">{$FREE_SHIPPING_DESCRIPTION}</div>
	        </div>
	    </div>
	
	    <div class="checkout_shipping_address">
	    	<div class="checkout_title" onclick="slideInOrOut('shipping_address')">
	    		<span class="fwb">{#title_shipping_address#}</span> 
	    		<img id="loader_shipping_address" src="{$tpl_path}img/ajaxload.gif" class="ajaxloader" width="16" height="16" /> 
	    		<div class="right" id="btn_shipping_address">{$SHOW_STAT_SHIPPING_ADDRESS_SYMBOL}</div>
	    	</div>
	        <div class="checkout_content{$SHOW_STAT_SHIPPING_ADDRESS}" id="chkt_shipping_address">
	        	<div id="not_virtual_address"{if $VIRTUAL == 1} class="dn"{/if}>
	                <div id="shipping_address">{$SHIPPING_ADDRESS_LABEL}</div>
	                <div id="shipping_address_select" class="dn">
		                <span class="fwb">{#address_old#}</span><br />
		                <span id="dyn_shipping_address"></span><br /><br />
		                {if $ADDRESS_NEW_POSSIBLE == 1}
			                {$FORM_ACTION_SHIPPING_ADDRESS}
			                {$MODULE_new_address}<br />
			                <span id="shipping_address_error" class="inputRequirement"></span>
			                {$FORM_END}
		                {else}
		                	{#address_no_more#}
		                {/if}
	                </div>
	                <div id="shipping_address_button_edit" class="checkout_button">{$BUTTON_EDIT_SHIPPING_ADDRESS}</div>
	                <div id="shipping_address_button_save" class="checkout_button dn">{$BUTTON_BACK_SHIPPING_ADDRESS}{if $ADDRESS_NEW_POSSIBLE == 1} {$BUTTON_SAVE_SHIPPING_ADDRESS}{/if}</div>
	            </div>
	            <div id="virtual_address" class="virtual{if $VIRTUAL != 1} dn{/if}">{$TEXT_VIRTUAL}</div>
	        </div>
	    </div>
	</div>

	<div class="bbd mb10">&nbsp;</div>

	<div class="checkout_row clearfix">
		<div class="checkout_payment_modules">
	    	<div class="checkout_title" onclick="slideInOrOut('payment_modules')">
	    		<span class="fwb">{#title_payment_modules#}</span> 
	    		<img id="loader_payment_modules" src="{$tpl_path}img/ajaxload.gif" class="ajaxloader" width="16" height="16" />
	    		<div class="right" id="btn_payment_modules">{$SHOW_STAT_PAYMENT_MODULES_SYMBOL}</div>
	    	</div>
	        <div class="checkout_content{$SHOW_STAT_PAYMENT_MODULES}" id="chkt_payment_modules">
                <div id="payment_modules">
	                {$FORM_ACTION_PAYMENT_MODULES}
		                <div id="payments">
		                	{$PAYMENT_BLOCK}
		                </div>
		                {if $NO_PAYMENTS == 1}
			                <div>
			                	{#text_no_payments#}
			                </div>
		                {/if}
		                {if $BUTTON_SAVE_PAYMENT_MODULE}
		                	<div class="right h30">{$BUTTON_SAVE_PAYMENT_MODULE}</div><div class="clearfix"></div>
		                {/if}
		                <div class="inputRequirement left_space dn" id="payment_module_error">&nbsp;</div>
                	{$FORM_END}
                </div>
                <div id="payment_gccover" class="virtual dn">{#text_gccover#}</div>
	        </div>
	    </div>
	    <div class="checkout_payment_address">
	    	<div class="checkout_title" onclick="slideInOrOut('payment_address')">
	    		<span class="fwb">{#title_payment_address#}</span> 
	    		<img id="loader_payment_address" src="{$tpl_path}img/ajaxload.gif" class="ajaxloader" width="16" height="16" /> 
	    		<div class="right" id="btn_payment_address">{$SHOW_STAT_PAYMENT_ADDRESS_SYMBOL}</div>
	    	</div>
	        <div class="checkout_content{$SHOW_STAT_PAYMENT_ADDRESS}" id="chkt_payment_address">
	        	<div id="payment_address">{$PAYMENT_ADDRESS_LABEL}</div>
	            <div id="payment_address_select" class="dn">
		            <span class="fwb">{#address_old#}</span><br />
		            <span id="dyn_payment_address"></span><br /><br />
		            {if $ADDRESS_NEW_POSSIBLE == 1}
			            {$FORM_ACTION_PAYMENT_ADDRESS}
			            {$MODULE_new_address}<br />
			            <span id="payment_address_error" class="inputRequirement"></span>
			            {$FORM_END}
		            {else}
		            	{#address_no_more#}
		            {/if}
	            </div>
	            <div id="payment_address_button_edit" class="checkout_button">{$BUTTON_EDIT_PAYMENT_ADDRESS}</div>
	            <div id="payment_address_button_save" class="checkout_button dn">{$BUTTON_BACK_PAYMENT_ADDRESS}{if $ADDRESS_NEW_POSSIBLE == 1} {$BUTTON_SAVE_PAYMENT_ADDRESS}{/if}</div>
	        </div>
	    </div>
	</div>

	<div class="bbd mb10">&nbsp;</div>
	
	{$FORM_ACTION}
	<div class="checkout_comments">
		<div class="checkout_title" onclick="slideInOrOut('comments');">
			<span class="fwb">{#title_comments#}</span> 
			<div class="right" id="btn_comments">{$SHOW_STAT_COMMENTS_SYMBOL}</div>
		</div>
	    <div class="checkout_content{$SHOW_STAT_COMMENTS}" id="chkt_comments">{$COMMENTS}</div>
	</div>
	
	<div class="bbd mb10">&nbsp;</div>
	
	<table class="w100p">
		<tr>
			<td class="va-t">
				<div class="checkout_products">
					<div class="checkout_title" onclick="slideInOrOut('products')">
						<span class="fwb">{#title_products#}</span> (<span id="checkout_products_howmuch">{$PRODUCTS_HOW_MUCH}</span>) 
						<img id="loader_products" src="{$tpl_path}img/ajaxload.gif" class="ajaxloader" width="16" height="16" /> 
						<div class="right" id="btn_products">{$SHOW_STAT_PRODUCTS_SYMBOL}</div>
					</div>
				    <div class="checkout_content{$SHOW_STAT_PRODUCTS}" id="chkt_products">
				        <div id="chkt_products_list">
				        {$PRODUCTS_BLOCK}
				        </div>
				        <div class="checkout_button"></div>
					</div>
				</div>
			</td>
			<td class="w40p va-b ta-r">
				<div class="checkout_total" id="checkout_total">{$ORDER_TOTAL}</div>
				{if $module_gift}<div id="payment_gift">{$module_gift}</div>{/if}
			</td>
		</tr>
	</table>
	<div class="checkout_spacer">&nbsp;</div>
	<div class="checkout_spacer dn" id="checkout_hiddens">{$HIDDEN_PAYMENT}</div>
	<div class="checkout_button">{$HIDDEN_XAJAX}{$BUTTON_ORDER}</div>
	{$FORM_END}
	{if $TRUSTED_SHOPS_CHECKOUT_DESC !=''}
		<div class="clearfix mb10">
			<span class="trusted_shops_siegel_checkout"></span>
			<div class="trusted_shops_desc_checkout">{$TRUSTED_SHOPS_CHECKOUT_DESC}</div>
		</div>
	{/if}
	<div class="left m10">{$BUTTON_ORDER_BACK}</div>
</div>